//
//  SongSearchOperation.h
//  MediaLibraryAccess_04
//
//  Created by 畑圭輔 on 10/02/07.
//  Copyright 2010 Keisuke Hata. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <MediaPlayer/MediaPlayer.h>

@protocol SongSearchOperationResultsDelegate;

@interface SongSearchOperation : NSOperation {

@private
	NSString *_searchTitle;
	MPMediaQuery *_query;
	NSArray *_items;
	id< SongSearchOperationResultsDelegate > _resultsDeleagte;
}

@property (nonatomic,readonly) NSArray *items;
@property (nonatomic,readonly) NSString *searchTitle;
@property (nonatomic,assign) id< SongSearchOperationResultsDelegate > resultsDeleate;

- (id) initWithSearchItem : (NSString *)searchTitle searchQuery:(MPMediaQuery *)query;

@end

// 処理が完了した時のDelegate
@protocol SongSearchOperationResultsDelegate< NSObject >

-(void) operationFinishedSearch : (SongSearchOperation *)op;

@end
